class Pretender {
	def methodMissing(String name, Object args) {
		"called $name with $args"
	}
}

def pretender = new Pretender()
assert pretender.hello('world') == 'called hello with [world]'
